home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / util / misc / zkick301.lzh / zkick.h < prev    next >
Text File  |  1991-07-09  |  850b  |  9 lines

  1. #define EQUAL(ASTART,AEND,BSTART,BEND) ((ASTART)==(BSTART) && (AEND)==(BEND))
  2. #define BELOW(ASTART,AEND,BSTART,BEND) ((ASTART)<(BSTART) && (AEND)<(BSTART))
  3. #define ABOVE(ASTART,AEND,BSTART,BEND) ((BSTART)<(ASTART) && (BEND)<(ASTART))
  4. #define SUBSET(ASTART,AEND,BSTART,BEND) ((ASTART)>=(BSTART) && (AEND)<=(BEND) && !EQUAL(ASTART,AEND,BSTART,BEND))
  5. #define SUPERSET(ASTART,AEND,BSTART,BEND) ((ASTART)<=(BSTART) && (AEND)>=(BEND) && !EQUAL(ASTART,AEND,BSTART,BEND))
  6. #define INTERLOW(ASTART,AEND,BSTART,BEND) ((ASTART)<=(BSTART) && (AEND)>=(BSTART) && (AEND)<=(BEND) && !EQUAL(ASTART,AEND,BSTART,BEND))
  7. #define INTERHI(ASTART,AEND,BSTART,BEND) ((BSTART)<=(ASTART) && (BEND)>=(ASTART) && (BEND)<=(AEND) && !EQUAL(ASTART,AEND,BSTART,BEND))
  8. #define INTERSECT(ASTART,AEND,BSTART,BEND) (INTERHI(ASTART,AEND,BSTART,BEND) || INTERLOW(ASTART,AEND,BSTART,BEND))
  9.